<include file="../header" />
<body class="J_scroll_fixed">
    <script>
        $(function(){
             $('button.viewVip').click(function () {

                var id = $(this).attr("id");
                layer.open({

                    type: 2,
                    title: '查看公开课人员',
                    maxmin: false,
                    shadeClose: true, //点击遮罩关闭层
                    area: ['80%', '98%'],
                    content: "{:U('publicCourse/viewVip')}&id="+id

                });
            });
        });
        
    </script>
<form class="well form-search" method="post" style="float:left;width:100%;" action="{:U('publicCourse/index')}">
    <div class="search_type cc mb10">
        <div class="mb10">
            <span class="mr20">
                店铺选择：{:getShopSelectHtml($shopId,1)}
                教练姓名：
                <input type="text" name="coachName" class="input" value="{$coachName}" />
                <button class="btn btn-primary">搜索</button>
                <a class="btn" href="{:U('publicCourse/index')}">重置</a>
            </span>
        </div>
    </div>
</form>
<div class="wrap J_check_wrap">
 
    <table class="table table-hover table-bordered">
        <thead>
        <tr>
            <th>编号</th>
            <th>店铺名称</th>
            <th>教练</th>
            <th>课程类型</th>
            <th>日期</th>
            <th>上课时间</th>
            <th>报名/上限</th>
            <th>课程状态</th>
            <th>预约人员</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <foreach name="list" item="vo">
            <tr>
                <td>{$vo.public_id}</td>
                <td>{$vo.shop_name}</td>
                <td>{$vo.coach_name}</td>
                <td>
                    {:getEnumString($courseType, $vo['course_type'])}
                </td>
                <td>{$vo.day}</td>
                <td>{$vo.clock_time}:00-{$vo.clock_time}:45</td>
                <td>{$vo.join_number} / {$vo.upper_limit} 人</td>
                <td>{:getEnumString($status, $vo['status'])}</td>
                <td><button class="viewVip btn" id="{$vo['public_id']}">查看</button></td>
                <td>
                    <a href='{:U("publicCourse/publicOpen",array("shopId"=>$vo["shop_id"],"day"=>$vo["day"],"clock"=>$vo["clock_time"]))}' class="btn">修改</a> 
                </td>
            </tr>
        </foreach>
        </tbody>
    </table>
    <div class="pagination">{$page}</div>
</div>
<script src="__ROOT__/statics/js/common.js"></script>
</body>
</html>